Skip to content

add empty object as constraints parameter for restart method#507

Merged
olipyskoty merged 1 commit intomasterfrom
firefox-audioinput-fix
May 5, 2021
Merged

add empty object as constraints parameter for restart method#507
olipyskoty merged 1 commit intomasterfrom
firefox-audioinput-fix

Conversation

@olipyskoty
Copy link
Copy Markdown
Contributor

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

  • N/A

Description

This PR addresses a follow-up bug to GitHub issue #462. In Firefox, when a user is connected to a room and uses an external microphone (or headphones with a built-in microphone), and then disconnects that mic, the other participants can no longer hear the user despite being unmuted. We fixed this by passing an empty object {} to audioTrack.restart() in the useRestartAudioTrackOnDeviceChange hook, which will use the default MediaTrackConstraints as a result.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@olipyskoty olipyskoty requested a review from timmydoza May 5, 2021 21:12
Copy link
Copy Markdown
Contributor

@timmydoza timmydoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great description!

@olipyskoty olipyskoty merged commit f7a8cb6 into master May 5, 2021
@olipyskoty olipyskoty deleted the firefox-audioinput-fix branch May 5, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants